<head>
<?php echo $javascript->link('jquery-1.3.2.js');?>
<script type="text/javascript">
$(document).ready(function(){
	/*
	  $("p").click(function(){
	    $(this).hide();
	  });
	  */
	$("#sandwich").click(function(){
		//test();//ok

		mySandwich('ham', 'cheese', function() {
		    alert('Finished eating my sandwich.');
		});
	});
});

//function win1(){
//	win1 = window.open("http://localhost/js-tut/javascripts/popup","Window1",
//	"menubar=no,width=430,height=360,toolbar=no’);
//}

function popitup(url) {
	win1=window.open(url,'name','height=200,width=150');
	if (window.focus) {newwindow.focus()}
	return false;
}
function popitup2(url) {
	win2=window.open(url,'name','height=200,width=150');
	if (window.focus) {newwindow.focus()}
	return false;
}

function createDocWin2(){
	win2.document.writeln("<h2>This is written to Window 2 by the main window</h2>");
}
//http://www.blazonry.com/javascript/windows.php
//*/
</script>
</head>

<body>
<h1>Alert</h1>
<p id="sandwich">click me</p>
<?php
//href="javascript:void(0)" vs href="#"
?>
<a href="javascript:void(0);"
 onclick="javascript:window.open("http://jsc.simfatic-solutions.com","mywindow","menubar=1,resizable=1,width=350,height=250");" >Link to popup 1</a>
</body>